PGetParaSpace

Gets the settings of the Space Before and Space After paragraph options for the selected text or for the paragraph containing the insertion point.


Query results

long nSpaceBefore;
Space to precede paragraph in twips
long nSpaceAfter;
Space to follow paragraph in twips
Defining or editing a style. If you are defining or editing a style using the PStyleBegin command, PageMaker gets the Space Before and Space After settings for that style rather than for the selected text.

Multiple settings. If multiple paragraphs are selected and they have different Space Before and Space After settings, PageMaker returns -2 for nSpaceBefore and nSpaceAfter.

Pointer tool. If the pointer tool is active, PageMaker gets the default settings.

Example. Reset the space before to zero using the PParaSpace command, leaving the space after the same.

PGetParaSpace paraSpace;
if (paraSpace.nSpaceBefore > 0)
    PParaSpace(0, paraSpace.nSpaceAfter);


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support